package org.millioncall.yueyoga.admin.service.impl;

import java.util.Map;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.yueyoga.admin.dao.RechargeDAO;
import org.millioncall.yueyoga.admin.model.Recharge;
import org.millioncall.yueyoga.admin.service.RechargeService;

public class RechargeServiceImpl implements RechargeService {

	private RechargeDAO rechargeDAO;

	public RechargeDAO getRechargeDAO() {
		return rechargeDAO;
	}

	public void setRechargeDAO(RechargeDAO rechargeDAO) {
		this.rechargeDAO = rechargeDAO;
	}

	@Override
	public void recharge(Recharge recharge) {
		this.rechargeDAO.recharge(recharge);
	}

	@Override
	public PaginatedList<Recharge> findInPage(Integer pageNo, Integer pageSize, Map<String, Object> map) {
		return this.rechargeDAO.findInPage(pageNo, pageSize, map);
	}

	@Override
	public PaginatedList<Recharge> findInPage(Integer start, Integer limit, String[] paramNames, String[] paramValues) {
		return this.rechargeDAO.findInPage(start, limit, paramNames, paramValues);
	}

	@Override
	public PaginatedList<Recharge> findByMemberId(Integer start, Integer limit, Integer memberId) {
		return this.rechargeDAO.findByMemberId(start, limit, memberId);
	}
	
	@Override
	public PaginatedList<Recharge> findTiquByMemberId(Integer start, Integer limit, Integer memberId) {
		return this.rechargeDAO.findTiquByMemberId(start, limit, memberId);
	}

	@Override
	public int insert(Recharge recharge) {
		return this.rechargeDAO.insert(recharge);
	}

	@Override
	public PaginatedList<Recharge> findRechargeByMap(int start, int limit,
			Map<String, Object> map) {
		return this.rechargeDAO.findRechargeByMap(start, limit, map);
	}

}
